package com.example.medical.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName device
 */
@TableName(value ="device")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Device implements Serializable {
    /**
     * 设备主键
     */
    @TableId(value = "device_id",type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long deviceId;

    /**
     * 设备编号
     */
    @TableField(value = "device_number")
    private String deviceNumber;

    /**
     * 设备名称
     */
    @TableField(value = "device_name")
    private String deviceName;

    /**
     * 设备类型名
     */
    @TableField(value = "device_type_name")
    private String deviceTypeName;

    /**
     * 设备类型主键
     */
    @TableField(value = "device_type_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long deviceTypeId;

    /**
     * 设备型号
     */
    @TableField(value = "device_model")
    private String deviceModel;

    /**
     * 设备库存
     */
    @TableField(value = "device_inventory")
    private Long deviceInventory;

    /**
     * 设备库房名
     */
    @TableField(value = "device_storeroom_name")
    private String deviceStoreroomName;

    /**
     * 设备库房编号
     */
    @TableField(value = "device_storeroom_number")
    private String deviceStoreroomNumber;

    /**
     * 设备库房编号
     */
    @TableField(value = "device_storeroom_address")
    private String deviceStoreroomAddress;

    /**
     * 设备库房主键
     */
    @TableField(value = "device_storeroom_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long deviceStoreroomId;

    /**
     * 设备库房名
     */
    @TableField(value = "device_storeroom_type_name")
    private String deviceStoreroomTypeName;

    /**
     * 设备库房主键
     */
    @TableField(value = "device_storeroom_type_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long deviceStoreroomTypeId;

    /**
     * 设备科室名
     */
    @TableField(value = "device_division_name")
    private String deviceDivisionName;

    /**
     * 设备科室主键
     */
    @TableField(value = "device_division_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long deviceDivisionId;

    /**
     * 设备介绍
     */
    @TableField(value = "device_message")
    private String deviceMessage;

    /**
     * 设备是否上架
0：上架
1：下架
     */
    @TableField(value = "device_shelves")
    private Integer deviceShelves;

    /**
     * 添加时间
     */
    @TableField(value = "save_time")
    private String saveTime;

    /**
     * 逻辑删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}